import request from '@/utils/request'

// 查询用户答题记录列表
export function listUserQuestionRecord(query) {
  return request({
    url: '/yljf/UserQuestionRecord/list',
    method: 'get',
    params: query
  })
}

// 查询用户答题记录详细
export function getUserQuestionRecord(id) {
  return request({
    url: '/yljf/UserQuestionRecord/' + id,
    method: 'get'
  })
}

// 新增用户答题记录
export function addUserQuestionRecord(data) {
  return request({
    url: '/yljf/UserQuestionRecord',
    method: 'post',
    data: data
  })
}

// 修改用户答题记录
export function updateUserQuestionRecord(data) {
  return request({
    url: '/yljf/UserQuestionRecord',
    method: 'put',
    data: data
  })
}

// 删除用户答题记录
export function delUserQuestionRecord(id) {
  return request({
    url: '/yljf/UserQuestionRecord/' + id,
    method: 'delete'
  })
}
